<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.enums.*"%>
<%@page import="com.infomanage.service.plan.*"%>
<%@page import="org.hibernate.*"%>
<%@page import="org.hibernate.cfg.*"%>
<%@page import="java.util.*"%>
<%
    request.setCharacterEncoding("UTF-8");
	String accidentRescueId = request.getParameter("accidentRescueId");
	SessionFactory sf = new Configuration().configure().buildSessionFactory();
    Session session1 = sf.openSession();
    String Hql="From AccidentRescue where accidentRescueId='"+accidentRescueId+"'";
	Query q = session1.createQuery(Hql);

	List list = q.list();
	AccidentRescue accidentRescue = (AccidentRescue)list.get(0);
    String accidentDept=accidentRescue.getAccidentDept();
    String accidentTimestamp=accidentRescue.getAccidentTimestamp();
    String accidentPlace=accidentRescue.getAccidentPlace();
    String accidentType=accidentRescue.getAccidentType();
    int accidentPersonNum=accidentRescue.getAccidentPersonNum();
    int accidentPersontDead=accidentRescue.getAccidentPersontDead();
    String accidentRequesterDept=accidentRescue.getAccidentRequesterDept();
    String accidentRequesterName=accidentRescue.getAccidentRequesterName();
    String accidentRequesterPhone=accidentRescue.getAccidentRequesterPhone();
    String accidentPhonetime=accidentRescue.getAccidentPhonetime();
    String accidentRecorder=accidentRescue.getAccidentRecorder();
    String accidentCommander=accidentRescue.getAccidentCommander();
    String description=accidentRescue.getDescription();
    session1.close();
	
%>
<html>
<head>
	<title>事故电话记录</title>
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
	<link href="../../css/calendar.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="../../js/calendar.js"></script>
	<script type="text/javascript">
	// 提交
	   function doSubmit(){
          form1.submit();
	   }
	   
	</script>
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" onclick="" onload="">
	<form name="form1" action="phonerecordaction.jsp" method="post" target="actionFrame">

	<input type="hidden" name="actionType">
	<input name="gasParams" value="" type="hidden"/>
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>事故电话记录表</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="14%">
					<col width="28%">
					<col width="18%">
					<col width="8%">
					<col width="8%">
					<col width="8%">
					<col width="8%">
					<col width="8%">
					<tr>
						<td class="field">
							事故单位
						</td>
						<td>
							<%=accidentDept %>
						</td>
						<td class="field">
							事发时间
						</td>
						<td colspan="7">
							<%=accidentTimestamp %>
						</td>
					</tr>
					<tr>
						<td class="field">
							事发地点
						</td>
						<td>
							<%=accidentPlace %>
						</td>
						<td class="field">
							事故性质
						</td>
						<td colspan="5">
                           <%=accidentType %>
						</td>
					</tr>
					<tr>
						<td class="field">
							遇险人员人数
						</td>
						<td>
							<%=accidentPersonNum %>
						</td>
						<td class="field">
							遇难人员人数
						</td>
						<td colspan="5">
                            <%=accidentPersontDead %>
						</td>
					</tr>
					<tr>
						<td class="field">
							请求人单位
						</td>
						<td>
							<%=accidentRequesterDept %>
						</td>
						<td class="field">
							请求人姓名
						</td>
						<td colspan="5">
                        <%=accidentRequesterName %>
						</td>
					</tr>
					<tr>
						<td class="field">
							请求人联系电话
						</td>
						<td>
							<%=accidentRequesterPhone %>
						</td>
						<td class="field">
							来电时间
						</td>
						<td colspan="5">
							<%=accidentPhonetime %>
						</td>
					</tr>
					<tr>
						<td class="field">
							记录人
						</td>
						<td>
							<%=accidentRecorder %>
						</td>
						<td class="field">
							值班指挥员
						</td>
						<td colspan="5">
                            <%=accidentCommander %>
						</td>
					</tr>
				    <tr style="height: 100px">
						<td class="field">
							备注
						</td>
						<td valign="top"  colspan="20">
							<%=description %>
						</td>
					</tr>


				</table>
			</td>
		</tr>
		<tr>
			<td colspan="8" class="tableBtn">
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="8">
				&nbsp;
			</td>
		</tr>
	</table>
	<iframe src="#" frameborder="0" id="treeFrame" name="frame" style="display: none;position: absolute;"></iframe>
	<iframe src="#" name="actionFrame" style="display: none;"></iframe>
</body>
</html>